﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Manul.Genetics.Character
{
    public sealed class CharacterNull : Character
    {
        private static volatile CharacterNull instance = null;
        private static object syncRoot = new Object();

        internal static CharacterNull GetInstance()
        {
            if (instance == null)
            {
                lock (syncRoot)
                {
                    if (instance == null)
                        instance = new CharacterNull();
                }
            }
            return instance;
        }

        private CharacterNull() { }
    }
}
